package com.ruoyi.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * @author nanyang
 */
public class PmsFirstAidVo implements Serializable {

    @Data
    @ApiModel("急救档案管理")
    public static class Result{
        @ApiModelProperty("id")
        private Long id;
        @ApiModelProperty("姓名")
        private String name;
        @ApiModelProperty("姓名全拼")
        private String pinyinFull;
        @ApiModelProperty("姓名简拼")
        private String pinyinSimple;
        @ApiModelProperty("性别")
        private Byte sex;
        @ApiModelProperty("年龄")
        private Integer age;
        @ApiModelProperty("身份证")
        private String idCard;
        @ApiModelProperty("民族")
        private String nation;
        @ApiModelProperty("联系电话")
        private String phone;
        @ApiModelProperty("身高")
        private String height;
        @ApiModelProperty("体重")
        private String weight;
        @ApiModelProperty("bmi")
        private String bmi;
        @ApiModelProperty("更新标识：0第一次输入，1更新患者信息")
        private Byte status;
        @ApiModelProperty("数据来源")
        private Integer source;
        @ApiModelProperty("备注")
        private String remark;
        @ApiModelProperty("创建者")
        private String createBy;
        @ApiModelProperty(" 创建时间")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date createTime;
        @ApiModelProperty("更新者")
        private String updateBy;
        @ApiModelProperty(" 修改时间")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date updateTime;
        @ApiModelProperty("子表数据")
        private List<PmsFirstAidVo.FirstAidRecordVo> recordVoList;
    }

    @Data
    @ApiModel("急救档案子表")
    public static class FirstAidRecordVo {
        @ApiModelProperty("key")
        private String code;
        @ApiModelProperty("value")
        private String answer;
    }

    @Data
    @ApiModel("Ct信息")
    public static class CtResult{
        @ApiModelProperty("患者ID")
        private Long patientId;
        @ApiModelProperty("影像地址")
        private String yxdz;
        @ApiModelProperty("诊断名称")
        private String zdmc;
        @ApiModelProperty("患者名称")
        private String name;
    }
}